<template>
	<uni-popup ref="popupRef" type="bottom">
		<view class="identity_box">
			<view class="identity_info">
				<image src="" class="identity_picture"></image>
				<view class="identity_tips">以轩实名认证</view>
			</view>
			<view class="identity_verification">
				<image src="https://xjs-oss-prod.oss-cn-shenzhen.aliyuncs.com/xjs-static/icon-20.png" class="verification_icon"></image>
				<view class="verification_text">身份信息审核通过</view>
				<image src="https://xjs-oss-prod.oss-cn-shenzhen.aliyuncs.com/xjs-static/icon-26.png" class="verification_status"></image>
			</view>
			<view class="identity_verification">
				<image src="https://xjs-oss-prod.oss-cn-shenzhen.aliyuncs.com/xjs-static/icon-20.png" class="verification_icon"></image>
				<view class="verification_text">
					<view>人脸识别通过</view>
					<view class="text_tips">保证服务均由认证经纪人提供</view>
				</view>
				<image src="https://xjs-oss-prod.oss-cn-shenzhen.aliyuncs.com/xjs-static/icon-24.png" class="verification_status"></image>
			</view>
			<view class="footer_box" @tap="close">我已知晓</view>
		</view>
	</uni-popup>
</template>

<script setup>
	import { ref } from 'vue'
	const popupRef = ref()
	
	const open = () => {
		popupRef.value.open()
	}
	const close = () => {
		popupRef.value.close()
	}
	
	defineExpose({ open })
</script>

<style lang="scss" scoped>
	.identity_box {
		background: #FFFFFF;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		display: flex;
		flex-direction: column;
		
		.identity_info {
			margin-top: 40rpx;
			margin-bottom: 80rpx;
			text-align: center;
			
			.identity_picture {
				width: 160rpx;
				height: 160rpx;
				border-radius: 16rpx;
				background-color: pink;
				margin: 0 auto;
				
			}
			.identity_tips {
				margin-top: 32rpx;
				font-weight: bold;
				font-size: 36rpx;
				color: #1A1A1A;
				text-align: center;
			}
		}
		
		.identity_verification {
			background: #F9F6F6;
			border-radius: 24rpx;
			padding: 32rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin: 0 48rpx 32rpx 48rpx;
			
			.verification_icon {
				width: 64rpx;
				height: 64rpx;
				margin-right: 32rpx;
			}
			.verification_text {
				flex: 1;
				font-weight: bold;
				font-size: 32rpx;
				color: #1B2120;
				
				.text_tips {
					font-size: 26rpx;
					color: #7C807F;
					margin-top: 16rpx;
				}
			}
			.verification_status {
				width: 122rpx;
				height: 48rpx;
			}
			
		}
	
		.footer_box {
			margin-top: 40rpx;
			border-top: 16rpx solid #F9F6F6;
			font-size: 30rpx;
			color: #1B2120;
			padding: 30rpx 0;
			text-align: center;
		}
	}
</style>